package com.hjj.app;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

import java.net.URL;
import java.sql.SQLException;

public class MyAPP extends Application {
    public static void main(String[] args) throws SQLException {
        Application.launch();
    }

    @Override
    public void start(Stage primaryStage) throws Exception {
        // 获取根布局对象
        URL resource = MyAPP.class.getResource("/view/Stu.fxml");
        Parent parent = FXMLLoader.load(resource);

        // 获取场景对象
        Scene scene = new Scene(parent);

        // 将场景添加到窗口中
        primaryStage.setScene(scene);

        // 设置标题
        primaryStage.setTitle("学生管理系统");

        // 启动窗口
        primaryStage.show();
    }
}
